package com.ruoyi.base.service.impl;

import java.util.Date;
import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BusWaterBussinesscategoryMapper;
import com.ruoyi.base.domain.BusWaterBussinesscategory;
import com.ruoyi.base.service.IBusWaterBussinesscategoryService;

/**
 * 业务类型基础Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
@Service
public class BusWaterBussinesscategoryServiceImpl implements IBusWaterBussinesscategoryService 
{
    @Autowired
    private BusWaterBussinesscategoryMapper busWaterBussinesscategoryMapper;

    /**
     * 查询业务类型基础
     * 
     * @param id 业务类型基础主键
     * @return 业务类型基础
     */
    @Override
    public BusWaterBussinesscategory selectBusWaterBussinesscategoryById(String id)
    {
        return busWaterBussinesscategoryMapper.selectBusWaterBussinesscategoryById(id);
    }

    /**
     * 查询业务类型基础列表
     * 
     * @param busWaterBussinesscategory 业务类型基础
     * @return 业务类型基础
     */
    @Override
    public List<BusWaterBussinesscategory> selectBusWaterBussinesscategoryList(BusWaterBussinesscategory busWaterBussinesscategory)
    {
        return busWaterBussinesscategoryMapper.selectBusWaterBussinesscategoryList(busWaterBussinesscategory);
    }

    /**
     * 新增业务类型基础
     * 
     * @param busWaterBussinesscategory 业务类型基础
     * @return 结果
     */
    @Override
    public int insertBusWaterBussinesscategory(BusWaterBussinesscategory busWaterBussinesscategory)
    {
        busWaterBussinesscategory.setId(UUID.randomUUID().toString());
        busWaterBussinesscategory.setCreatetime(new Date());
        return busWaterBussinesscategoryMapper.insertBusWaterBussinesscategory(busWaterBussinesscategory);
    }

    /**
     * 修改业务类型基础
     * 
     * @param busWaterBussinesscategory 业务类型基础
     * @return 结果
     */
    @Override
    public int updateBusWaterBussinesscategory(BusWaterBussinesscategory busWaterBussinesscategory)
    {
        return busWaterBussinesscategoryMapper.updateBusWaterBussinesscategory(busWaterBussinesscategory);
    }

    /**
     * 批量删除业务类型基础
     * 
     * @param ids 需要删除的业务类型基础主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterBussinesscategoryByIds(String[] ids)
    {
        return busWaterBussinesscategoryMapper.deleteBusWaterBussinesscategoryByIds(ids);
    }

    /**
     * 删除业务类型基础信息
     * 
     * @param id 业务类型基础主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterBussinesscategoryById(String id)
    {
        return busWaterBussinesscategoryMapper.deleteBusWaterBussinesscategoryById(id);
    }
}
